<?php
$this->breadcrumbs = array(
    'Shop',
);
?>

<div class="prepend-1 span-6">
    <?php $this->beginWidget('zii.widgets.CPortlet',
            array('title' => 'Thể loại')); ?>
    <?php $this->renderPartial('/category/index'); ?>
    <?php $this->endWidget(); ?>
    <?php
    if (Yii::app()->user->isGuest) {
        echo CHtml::link(('Đăng ký'), array('/user/registration'));
    } else {
        $this->beginWidget('zii.widgets.CPortlet',
                array('title' => 'Giỏ hàng'));
        $this->renderPartial('/Cart/index');
        $this->endWidget();
    }
    ?>    
</div>


<div id="shopcontent" class="span-16 last">
    <h1> <?php
    echo 'Welcome';   
    ?> </h1>

<?php
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $dataProvider,
        'itemView' => '/Product/_view',
    ));
?>
</div>

<div class="clear"> </div>


